﻿using PetaPoco;
using System.ComponentModel.DataAnnotations;

namespace Cxuu.Models
{
    [TableName("cxuu_admin_group")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class AdminUserGroup
    {
        public int Id { get; set; }


        [Display(Name = "用户组名")]
        [Required(ErrorMessage = "请填写用户组名")]
        public string Groupname { get; set; }

        [Display(Name = "系统权限")]
        public string Systemrole { get; set; }

        [Display(Name = "内容栏目权限")]
        public string Channlrole { get; set; }


    }


    public class EditAdminUserGroup
    {
        public int Id { get; set; }


        [Display(Name = "用户组名")]
        [Required(ErrorMessage = "请填写用户组名")]
        public string Groupname { get; set; }

        [Display(Name = "系统权限")]
        public string Systemrole { get; set; }

        [Display(Name = "内容栏目权限")]
        public string Channlrole { get; set; }


    }


    public class ViewAdminUserGroup
    {
        public int Id { get; set; }

        [Display(Name = "用户组名")]
        public string Groupname { get; set; }

        [Display(Name = "系统权限")]
        public string Systemrole { get; set; }

        [Display(Name = "内容栏目权限")]
        public string Channlrole { get; set; }

    }
}
